Optimal. Leaf size=51 \[ -\frac {A \log \left (a+b x^2\right )}{2 a^2}+\frac {A \log (x)}{a^2}+\frac {A b-a B}{2 a b \left (a+b x^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {446, 77} \[ -\frac {A \log \left (a+b x^2\right )}{2 a^2}+\frac {A \log (x)}{a^2}+\frac {A b-a B}{2 a b \left (a+b x^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rule 446
Rubi steps
\begin {align*} \int \frac {A+B x^2}{x \left (a+b x^2\right )^2} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {A+B x}{x (a+b x)^2} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (\frac {A}{a^2 x}+\frac {-A b+a B}{a (a+b x)^2}-\frac {A b}{a^2 (a+b x)}\right ) \, dx,x,x^2\right )\\ &=\frac {A b-a B}{2 a b \left (a+b x^2\right )}+\frac {A \log (x)}{a^2}-\frac {A \log \left (a+b x^2\right )}{2 a^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 46, normalized size = 0.90 \[ \frac {\frac {a (A b-a B)}{b \left (a+b x^2\right )}-A \log \left (a+b x^2\right )+2 A \log (x)}{2 a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 70, normalized size = 1.37 \[ -\frac {B a^{2} - A a b + {\left (A b^{2} x^{2} + A a b\right )} \log \left (b x^{2} + a\right ) - 2 \, {\left (A b^{2} x^{2} + A a b\right )} \log \relax (x)}{2 \, {\left (a^{2} b^{2} x^{2} + a^{3} b\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.33, size = 63, normalized size = 1.24 \[ \frac {A \log \left (x^{2}\right )}{2 \, a^{2}} - \frac {A \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, a^{2}} + \frac {A b^{2} x^{2} - B a^{2} + 2 \, A a b}{2 \, {\left (b x^{2} + a\right )} a^{2} b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 53, normalized size = 1.04 \[ \frac {A}{2 \left (b \,x^{2}+a \right ) a}+\frac {A \ln \relax (x )}{a^{2}}-\frac {A \ln \left (b \,x^{2}+a \right )}{2 a^{2}}-\frac {B}{2 \left (b \,x^{2}+a \right ) b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.12, size = 51, normalized size = 1.00 \[ -\frac {B a - A b}{2 \, {\left (a b^{2} x^{2} + a^{2} b\right )}} - \frac {A \log \left (b x^{2} + a\right )}{2 \, a^{2}} + \frac {A \log \left (x^{2}\right )}{2 \, a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.15, size = 47, normalized size = 0.92 \[ \frac {A\,\ln \relax (x)}{a^2}-\frac {A\,\ln \left (b\,x^2+a\right )}{2\,a^2}+\frac {A\,b-B\,a}{2\,a\,b\,\left (b\,x^2+a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.42, size = 46, normalized size = 0.90 \[ \frac {A \log {\relax (x )}}{a^{2}} - \frac {A \log {\left (\frac {a}{b} + x^{2} \right )}}{2 a^{2}} + \frac {A b - B a}{2 a^{2} b + 2 a b^{2} x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________